package com.itany.corejava.day15;

public class Test1 {

    public static void main(String[] args) {
        Singleton1 singleton11=Singleton1.getSingleton1();
        Singleton1 singleton12=Singleton1.getSingleton1();

        System.out.println("singleton11 = " + singleton11);
        System.out.println("singleton12 = " + singleton12);

        Singleton2 singleton21=Singleton2.getSingleton2();
        Singleton2 singleton22=Singleton2.getSingleton2();

        System.out.println("singleton21 = " + singleton21);
        System.out.println("singleton22 = " + singleton22);
    }
}
